﻿using MvcApplication2.Models;
using MvcApplication2.Models.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication2.Controllers
{
    public class DaiLyController : Controller
    {
        //
        // GET: /DaiLy/

        public ActionResult DanhSachDaiLy()
        {
            var model = new DanhSachDaiLyModel();
            model.LoaiSanPhamList = MasterController.LayDanhSachLoaiSanPham();
            model.TongDiemThuong = MasterController.LayTongDiemThuong(User.Identity.Name);
            model.DaiLyList = DaiLyService.GetListDaiLy();
            return View(model);
        }

    }
}
